home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 April / Software of the Month Club 1996 April.iso / pc / os2 / psutils / src / config.h next >
C/C++ Source or Header  |  1996-02-21  |  648b  |  31 lines

  1. /*
  2.  * Copyright (C) Angus J. C. Duggan 1991-1995
  3.  * See file LICENSE for details.
  4.  * OS specific configuration for PSUtils
  5.  */
  6.  
  7. #if defined(MSDOS) || defined(WINNT)
  8. #define TMPDIR "\\tmp"
  9. #define OPEN_READ "rb"
  10. #define OPEN_WRITE "wb"
  11. #include <fcntl.h>
  12. #include <io.h>
  13. #else /* ! MSDOS && ! WINNT */
  14. #if defined(OS2)
  15. #define TMPDIR "."
  16. #define OPEN_READ "rb"
  17. #define OPEN_WRITE "wb"
  18. #else /* ! OS2 */
  19. #define OPEN_READ "r"
  20. #define OPEN_WRITE "w"
  21. #ifdef VMS
  22. #define unlink delete
  23. #define TMPDIR "/tmp"
  24. #else /* assumes UNIX-like OS */
  25. #include <unistd.h>
  26. #define TMPDIR "/tmp"
  27. #endif /* ! VMS */
  28. #endif /* ! OS2 */
  29. #endif /* ! MSDOS && ! WINNT */
  30.  
  31.